package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dto.ChannelDto;
import com.heima.model.admin.pojo.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

/**
 * Created by ZYJ on 2021/5/22 20:30
 */
public interface AdChannelService extends IService<AdChannel> {

    /**
     * 根据名称分页查询频道列表
     * @param dto
     * @return
     */
    ResponseResult findByNameAndPage(ChannelDto dto);

    /**
     * 频道新增
     * @param adChannel
     * @return
     */
    ResponseResult insert(AdChannel adChannel);

    /**
     * 频道修改
     * @param adChannel
     * @return
     */
    ResponseResult updateChannel(AdChannel adChannel);

    /**
     * 频道删除
     * @param id
     * @return
     */
    ResponseResult deleteById(Integer id);
}
